<template name="DefaultSearchResultTemplate">
	<div class="rocket-default-search-settings">
		<div>
			{{#if globalSearchEnabled}}
				<label>
					<input type="checkbox" id="global-search">{{_ "Global_Search"}}
				</label>
			{{/if}}
		</div>
	</div>
	<div class="rocket-default-search-results">
		{{#if result}}
			{{#if $and result.message result.message.docs}}
				<div class="flex-tab__result js-list">
					<ul class="list clearfix">
						{{# with messageContext}}
							{{#each msg in result.message.docs}}{{> message msg=(messageParse msg) groupable=true room=room subscription=subscription settings=settings u=u}}{{/each}}
						{{/with}}
					</ul>
				</div>
			{{else}}
				<h2>{{_ "No_results_found"}}</h2>
			{{/if}}
		{{/if}}
			<div class="load-more">
				{{#if searching}}
					{{> loading}}
				{{/if}}
			</div>
	</div>
</template>
